﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="user_edit.aspx.cs" Inherits="user_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看用户</title>
    <style type="text/css">
        

    </style>
</head>
<%--用户信息只能查看，不能修改--%>
<body>
    <form id="form1" runat="server">
      <div>
            
         <div style="margin:0 auto; width:700px; height:480px; border:0">
          <div style="width:700px; height:31px; border:0">
            <img src="image/book-top.jpg" alt="" width="700px" height="31px" />
          </div>
          <div>
            <div style="width:158px; height:443px; border:0; float:left">
              <img src="image/book-left.jpg" alt="" />
            </div>
          <div style="width:542px; height:443px; border:0; float:right">
          <div style="width:509px; height:374px; border:0; float:left">
        
         <div style=" margin:0 auto; width:509px; height:30px; text-align:center; font-size:x-large; background-color: #33CCFF" >
          用户信息
         </div> 
         <div style="text-align:center; height:334px">
          <asp:GridView ID="userList" runat="server" AutoGenerateColumns="False" AllowPaging="True"
              Height="20px" Width="509px" onrowcommand="userList_RowCommand">
              <Columns>
                <asp:BoundField DataField="User_Idint" HeaderText="用户编号" ItemStyle-Width="80px"></asp:BoundField>
                <asp:BoundField DataField="User_Namestr" HeaderText="用户名" ItemStyle-Width="100px"></asp:BoundField>
                
                <asp:HyperLinkField DataNavigateUrlFields="User_Idint" DataNavigateUrlFormatString="user_infor.aspx?User_Idint={0}"
                    HeaderText="详情" Text="详情" Target="mainFrame" />
                    
                <asp:TemplateField  HeaderText="删除">  
                    <ItemTemplate>  
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="deleteUser" 
                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"User_Idint")%>'   Text="删除" OnClientClick='<%#  "if (!confirm(\"你确定要删除吗?\")) return false;"%>'></asp:LinkButton>  
                    </ItemTemplate> 
                </asp:TemplateField>   
              </Columns>
        
          </asp:GridView>
            <asp:LinkButton ID="pageFirst" runat="server" Text="首页" CommandArgument="First"></asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="pagePrev" runat="server" Text="上一页" CommandArgument="Prev"></asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="pageNext" runat="server" Text="下一页" CommandArgument="Next"></asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="pageLast" runat="server" Text="首页" CommandArgument="Last"></asp:LinkButton>
        </div>
        
        </div>
           <div style="width:33px; height:374px; float:right; border:0">
             <img src="image/book-right.jpg" width="33px" height="374" alt="" />
           </div>
           <div style="width:542px; height:67px; border:0">
             <img src="image/book-bottom.jpg" alt="" width="542" height="67" />
           </div>
           </div>
          </div>
        </div>
        
      </div>
    </form>
</body>
</html>
